import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {FileManagementDefaultComponent} from './file-management-default/file-management-default.component';
import {ShareFileManagementComponent} from './share-file-management/share-file-management.component';
import {SafetyChainManagementComponent} from './safety-chain-management/safety-chain-management.component';

const routes: Routes = [
  {
    path: '',
    children: [
      {path: '', redirectTo: 'cloud', pathMatch: 'full'},
      {path: 'cloud', component: FileManagementDefaultComponent},
      {path: 'share', component: ShareFileManagementComponent},
      {path: 'safetyChain', component: SafetyChainManagementComponent},

    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class FileManagementRoutingModule {
}
